package com.center.biz.impl;

import com.center.api.model.EduQuestionsTag;
import com.center.api.remote.RemoteEduQuestionsTagService;
import com.center.biz.dao.EduQuestionsTagMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduQuestionsTagService.class)
public class RemoteEduQuestionsTagServiceImpl implements RemoteEduQuestionsTagService {

    @Autowired
    private EduQuestionsTagMapper eduQuestionsTagMapper;

    @Override
    public int save(EduQuestionsTag eduQuestionsTag) {
        return eduQuestionsTagMapper.insertSelective(eduQuestionsTag);
    }

    @Override
    public int update(EduQuestionsTag eduQuestionsTag) {
        return eduQuestionsTagMapper.updateByPrimaryKeySelective(eduQuestionsTag);
    }

    @Override
    public int delete(int id) {
        return eduQuestionsTagMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduQuestionsTag> select(EduQuestionsTag eduQuestionsTag) {
        return null;
    }

    @Override
    public EduQuestionsTag getById(int id) {
        return eduQuestionsTagMapper.selectByPrimaryKey(id);
    }
}
